package com.realestate.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.realestate.model.BrtbProduct;
import com.trg.dao.jpa.GenericDAO;

public interface ProductQueryDao extends GenericDAO<BrtbProduct, Long> {
	public List<BrtbProduct> getListproductByCategoryCode(String categoryCode, Long limit, Long productId, String typeProduct);

	public List<BrtbProduct> getListproductByCategoryCode(String categoryCode, Map<String, String> filter, Long limit);
	
	public Page<BrtbProduct> getPagingProduct(Pageable pageable, String categoryCode);
	
	public Page<BrtbProduct> getPagingProduct(Pageable pageable, String categoryCode, String districtCode, String buildingCode);
	
	public Page<BrtbProduct> getPagingProductSimpleSearch(Pageable pageable,
			Map<String, String> attributes);
}
